<?php
/*
 * @Created by: wangchengcheng
 * @Author: wangchengcheng
 * @Date: 2020-01-05 18:39:41
 * @LastEditors  : wangchengcheng
 * @LastEditTime : 2020-01-05 18:41:02
 */

namespace App\Http\Middleware;

use Closure;
use Illuminate\Foundation\Http\Middleware\TransformsRequest;

class CleanXss extends TransformsRequest
{
    /**
     * 过滤xss
     * 
     * @param string $key
     * @param mixed $value
     * 
     * @return mixed
     */
    protected function transform($key, $value)
    {
        return clean($value);
    }
}
